//路由 1、公共(login notfound) 2、私有
import Sign from "../component/Sign";
import NotFound from "../component/NotFound";



//后台页面
import { Home, Management,Standard,Dynamic,DataImport, DataManagement} from "../view";

import Home_edit from "../view/Home/Home_edit";
import Modal from "../view/Management/Management_table/Modal";
import Stand_edit from "../view/Standard/Stand_edit";
import Dynamic_edit from "../view/Dynamic/Dynamic_edit";



//公共页面
const commonRoutes = [
    {
        pathname: '/sign',
        component: Sign
    },
    {
        pathname: '/404',
        component: NotFound
    },
  
]



//后台私有
const privateRoute = [
    {
        pathname: '/admin/Home',
        title:'单位管理',
        component: Home,
        isTop: true,
    },
    {
        pathname: '/admin/Home_edit',
        title:'编辑',
        component: Home_edit,
     
    },
    {
        pathname: '/admin/Management',
        title:'用户管理',
        component: Management,
        isTop: true,
    },
    {
        pathname:'/admin/Modal',
        title:'用户编辑',
        component:Modal,
    },
    {
        pathname: '/admin/Standard',
        title:'标准管理',
        component: Standard,
        isTop: true,
    },
    {
        pathname:'/admin/Stand_edit',
        title:'用户编辑',
        component:Stand_edit,
    },
    {
        pathname: '/admin/Dynamic',
        title:'材料动态与通知',
        component: Dynamic,
        isTop: true,
    },
    {
        pathname: '/admin/Dynamic_edit',
        title:'材料动态编辑',
        component: Dynamic_edit,
    },
    {
        pathname: '/admin/DataImport',
        title:'数据导入管理',
        component: DataImport,
        isTop: true,
    },
    {
        pathname: '/admin/DataManagement',
        title:'数据管理',
        component: DataManagement,
        isTop: true,

    }
]

export {
    commonRoutes,
 
    privateRoute
}